@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/@CMAKE_PROJECT_NAME@-targets.cmake")

message(STATUS "Loading @PROJECT_NAME@ v${@PROJECT_NAME@_VERSION}: " "${CMAKE_CURRENT_LIST_DIR}")

include(CMakeFindDependencyMacro)

find_package(OpenCV REQUIRED COMPONENTS core highgui imgproc videoio)
if(TARGET @CMAKE_PROJECT_NAME@::rs2)
  find_package(realsense2 REQUIRED)
endif()

set(@CMAKE_PROJECT_NAME@_FOUND TRUE)

foreach(component ${@CMAKE_PROJECT_NAME@_FIND_COMPONENTS})
  #include(${CMAKE_CURRENT_LIST_DIR}/${component}-config.cmake)
  if(TARGET @CMAKE_PROJECT_NAME@::${component})
    set(@CMAKE_PROJECT_NAME@_${component}_FOUND TRUE)
  endif()
endforeach()

check_required_components(@CMAKE_PROJECT_NAME@)
message(STATUS "Found @namespace@@CMAKE_PROJECT_NAME@ : " "${CMAKE_CURRENT_LIST_DIR}")
